package cloud.shyidong.feign;

import cloud.shyidong.core.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description TODO
 * @Author syd
 * @Date 2023/10/19
 */
@FeignClient(name = "cloud-auth", path = "/cloud-auth")
public interface AuthServiceFeign {
    
    /**
     * 查询管理员登录信息
     *
     * @param token
     * @return
     */
    @GetMapping("/auth/admin/get")
    Result getAdminInfo(@RequestParam("token") String token);
    
    /**
     * 查询租户登录信息
     *
     * @param token
     * @return
     */
    @GetMapping("/auth/tenant/get")
    Result getTenantInfo(@RequestParam("token") String token);
    
}
